﻿// (c) Copyright slimCODE Software Inc. - www.slimcode.com
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.

using System;
using System.Security.Cryptography;

namespace SlimCode.Utils
{
  public class HMACSHA1 : HMAC
  {
    public HMACSHA1() 
      : this( HMAC.GenerateRandom( 64 ) ) 
    {
    }

    public HMACSHA1( byte[] key )
    {
      m_hashName = "SHA1";
      m_hash1 = new SHA1Managed();
      m_hash2 = new SHA1Managed();

      this.HashSizeValue = 160;

      this.InitializeKey( key );
    }
  }
}
